<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');


define('SITE_TITLE', 'Quản lý site');
define('COPY_RIGHT', '&copy; 2014 hoanguyen.info');
define('FACEBOOK_LINK', 'http://facebook.com/hoanguyen004');
define('GPLUS_LINK', 'http://plus.google.com/hoanguyen');
define('TWITTER_LINK', 'http://twitter.com/hoanguyen004');

// Thời gian lưu cache
$cache_time = 0;
define('CACHE_LIST', $cache_time); // phút
define('CACHE_DETAIL', $cache_time*3); // phút
define('CACHE_PAGE', $cache_time*5); // phút
define('CACHE_ELEMENT', $cache_time*7*60); // giây

// View kiểu Parser
define('ENABLE_PARSER', FALSE);

// Ma hoa mat khau
define('PASS_SALT', 'FALSE');

define('UPLOAD_DIR', '/home/hoanguyen004/www/');
define('PHOTO_DIR', UPLOAD_DIR . '/assets/upload/photo');
define('ALBUM_DIR', UPLOAD_DIR . '/assets/upload/album');
define('RAGECOMIC_DIR', UPLOAD_DIR . '/assets/upload/ragecomic');
define('IMAGE_DIR', UPLOAD_DIR  . '/files');


define('ROOTPATH', str_replace('system/','',BASEPATH));

define('THUMB_S_W', 50); // Chiều rộng ảnh đại diện cỡ S
define('THUMB_S_H', 50); // Chiều cao ảnh đại diện cỡ S
define('THUMB_M_W', 100);
define('THUMB_M_H', 100);
define('THUMB_L_W', 200);
define('THUMB_L_H', 200);

define('APP_MIN_FAKE_DOWNLOADS', 4000);
define('APP_MAX_FAKE_DOWNLOADS', 4500);

// create eid api
define('CREATE_EID_API', 'http://127.0.0.1:19840/id/genalphaid?len=3');

define('SERVER', 'local');


define('GRAPHDB_API', 'http://123.29.67.202:19888/graph/item');
//define('CREATE_EID_API', 'http://123.30.180.141:19840/id/genalphaid?len=3');

/* End of file constants.php */
/* Location: ./application/config/constants.php */
